<?php

namespace App\Http\Requests\UserApi\ClassController;

use App\Http\Requests\BaseRequest;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class ListsWhere extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules=[
            'type'=>['required', Rule::in(['class_lists','store_lists','time_lists'])],
        ];

        return $rules;
    }

    public function messages()
    {
        return [
            'type.required' => 'type参数必传!',
            'type.in' => 'type参数有误!',
        ];
    }
}
